package task04.enteties;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * enteties.User: jeetrainee
 * Date: 10/28/13
 * Time: 8:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class User implements Serializable {
    private String name;
    private String password;
    private int age;
    private float weight;
    private double height;
    private boolean isWorker;

    public User() {
    }

    public User(String name, String password, int age) {
        this.name = name;
        this.password = password;
        this.age = age;
    }

    public User(String name, String password, int age, float weight, double height, boolean worker) {
        this.name = name;
        this.password = password;
        this.age = age;
        this.weight = weight;
        this.height = height;
        isWorker = worker;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public boolean isWorker() {
        return isWorker;
    }

    public void setWorker(boolean worker) {
        isWorker = worker;
    }
}
